#include <stdio.h>
int switch_func(int x){
switch(x) {
	case 3:
		return x*0x1e;
		
	case 2:
		return (x*4+x)*4;	
		
	case 1:
		return (x*4+x)*2;
		

	default:
		return 0;
}


}
int main(){
	int x = 28;
	int b;
	puts("Input a number from 0 to 3: :" );
	scanf("%d", &x);
	b = switch_func(x);
	printf("%d\n", b);
	return 0;
}
